package asteroids.model.programs;
/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public class Type {
public enum AllType{DOUBLE,BOOLEAN,ENTITY}
private AllType type;
public Type(AllType t){
	this.type= t;
}
public AllType getType(){
	return type;
}

@Override
public boolean equals(Object type){
	if(type instanceof Type && ((Type) type).getType()== getType())
		return true;
return false;
}

@Override
public int hashCode(){
	if(getType()==AllType.BOOLEAN)
		return 1;
	if(getType() == AllType.DOUBLE)
		return 2;
	
	return 3;
	
}
}
